//
//  MyTableView.h
//  1gene
//
//  Created by 1jiyin on 16/2/26.
//  Copyright © 2016年 1jiyin. All rights reserved.
//
@protocol MyTableViewDelegate <NSObject>
/*
 *点击用户头像
 */
-(void)userHeadImageViewClick;
/*
 *签到
 */
-(void)signIn;
/*
 *抽奖
 */
-(void)choujiang;
/*
 *点击tableViewCell
 */
-(void)clickCell:(NSInteger)index;
/*
 *点击积分
 */
-(void)gotoMyScoreViewController:(CGFloat)score;

-(void)returnScore:(CGFloat)score;

@end
#import <UIKit/UIKit.h>
#import "UserModel.h"

@interface MyTableView : UITableView<UITableViewDataSource,UITableViewDelegate>
@property(nonatomic,copy)NSMutableArray *dataArray;
@property(nonatomic,copy)NSMutableArray *imgDataArray;
/*
 *设置代理
 */
@property(nonatomic,assign)id <MyTableViewDelegate>myDelegate;
/*
 *重写init方法
 */
-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style WithData:(NSArray *)array andImgData:(NSArray *)imgData;
/*
 *用户头像
 */
@property(nonatomic,copy)UIImageView *headImgView;
/*
 *积分
 */
@property(nonatomic,copy)UILabel *scoreLab;
@property(nonatomic,copy)UIButton *scoreBtn;

@property(nonatomic,copy)void(^getUserInfoData)(NSDictionary *dic);
@end
